#!ipxe

# IPFire
# https://www.ipfire.org/

goto ${menu} ||

:ipfire
clear osversion
set os {{ releases.ipfire.name }}
menu ${os}
{% for item in releases.ipfire.versions %}
item {{ item.code_name }} ${space} ${os} {{ item.name }}
{% endfor %}
isset ${osversion} || choose osversion || goto linux_menu
echo ${cls}
set dir ${ipfire_base_dir}/${osversion}/images/x86_64
goto ipfire_images

:ipfire_images
imgfree
kernel ${ipfire_mirror}/${dir}/vmlinuz vga=791 initrd=instroot ${cmdline}
initrd ${ipfire_mirror}/${dir}/instroot
echo
echo MD5sums:
md5sum vmlinuz instroot
boot

:ipfire_exit
clear menu
exit 0
